package com.aplink.generic.pojo;

public class ObjectFilter {
    private String mDataObject;
    private String mDefaultValue;
    private String mFilterValue;
    private String mMappingName;

    public ObjectFilter() {
        super();
    }

    public ObjectFilter(final String dataObject, final String mappingName) {
        super();
        this.mDataObject = dataObject;
        this.mMappingName = mappingName;
    }

    public ObjectFilter(final String dataObject, final String mappingName,
            final String filterValue) {
        super();
        this.mDataObject = dataObject;
        this.mMappingName = mappingName;
        this.mFilterValue = filterValue;
    }

    public String getDataObject() {
        return this.mDataObject;
    }

    public String getDefaultValue() {
        return this.mDefaultValue;
    }

    public String getFilterValue() {
        return this.mFilterValue;
    }

    public String getFullColumnName() {
        return this.mDataObject + "." + this.mMappingName;
    }

    public String getMappingName() {
        return this.mMappingName;
    }

    public boolean isShowAll() {
        return this.mFilterValue.equalsIgnoreCase(this.mDefaultValue);
    }

    public void setDataObject(final String dataObject) {
        this.mDataObject = dataObject;
    }

    public void setDefaultValue(final String defaultValue) {
        this.mDefaultValue = defaultValue;
    }

    public void setFilterValue(final String filterValue) {
        this.mFilterValue = filterValue;
    }

    public void setMappingName(final String mappingName) {
        this.mMappingName = mappingName;
    }
}
